package com.github.rxyor.example.transaction.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.rxyor.example.transaction.goods.model.entity.GoodsDO;
import java.math.BigDecimal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/9/4 周三 17:35:00
 * @since 1.0.0
 */
@Mapper
public interface GoodsMapper extends BaseMapper<GoodsDO> {

    int risePriceById(@Param("id") Long id, @Param("floatedPrice") BigDecimal floatedPrice);

    int subtractStockById(@Param("id") Long id);

}